home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 November / EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso / earcd / program / misc / doublbuf.lha / screen.c < prev    next >
C/C++ Source or Header  |  1995-08-15  |  1KB  |  44 lines

  1. #include    "main.h"
  2. #include    <graphics/videocontrol.h>        // plus all the other shit
  3.  
  4.  
  5. struct TextAttr TOPAZ80 = {
  6.     (STRPTR)"topaz.font",
  7.     TOPAZ_EIGHTY,0,0
  8. };
  9.  
  10. UWORD quickpens[] = { ~0 };
  11.  
  12. struct TagItem VCTags[] =
  13. {
  14.     { VTAG_BORDERBLANK_SET, TRUE },
  15.     { VC_IntermediateCLUpdate, FALSE },        // speeds up on V40
  16.     { TAG_DONE, NULL },
  17. };
  18.  
  19.  
  20. struct TagItem ScreenTags[] =
  21. {
  22.     { SA_Pens,        &quickpens },
  23.     { SA_Interleaved,     TRUE },
  24.     { SA_Draggable,        FALSE },
  25.     { SA_Exclusive,        TRUE },
  26.     { SA_MinimizeISG,    TRUE },            // V40: minimize interscreen gap
  27.     { SA_VideoControl,     &VCTags },
  28.     { TAG_DONE,        0 },
  29. };
  30.  
  31. struct ExtNewScreen NewScreenStructure = {
  32.     0,0,                /* screen XY origin relative to View */
  33.     cube_screen_width, cube_screen_len,            /* screen width and height */
  34.     cube_screen_depth,                    /* screen depth (number of bitplanes) */
  35.     1,2,                /* detail and block pens */
  36.     HIRES,                /* display modes for this screen */
  37.     CUSTOMSCREEN+SCREENQUIET+CUSTOMBITMAP+NS_EXTENDED,    /* screen type */
  38.     &TOPAZ80,            /* pointer to default screen font */
  39.     NULL,                /* screen title */
  40.     NULL,                /* first in list of custom screen gadgets */
  41.     NULL,            /* pointer to custom BitMap structure */
  42.     (struct TagItem *)&ScreenTags
  43. };
  44.